#路由
from tornado.web import RequestHandler
#设置允许所有端口访问
class BaseHandler(RequestHandler):
    def set_default_headers(self) -> None:
        self.set_header('Access-Control-Allow-Origin','*')

class IndexHandler(RequestHandler):
    async def get(self):
        self.write('Hello!')